Make global GDK libgtk_only functions more private
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 7 Nov 2014 13:40:22 +0000 (13:40 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 8 Nov 2014 05:20:15 +0000 (00:20 -0500)
commiteedbec2066588697f276d087fe8ec575d4e008eb
tree67ddf3494a35d898dfc79f1dd673408da418e792
parent713d3834f6617bce5916ecaf07962be678d52805
Make global GDK libgtk_only functions more private

The current way of exposing GDK API that should be considered internal
to GTK+ is to append a 'libgtk_only' suffix to the function name; this
is not really safe.

GLib has been using a slightly different approach: a private table of
function pointers, and a macro that allows accessing the desired symbol
inside that vtable.

We can copy the approach, and deprecate the 'libgtk_only' symbols in
lieu of outright removal.

https://bugzilla.gnome.org/show_bug.cgi?id=739781
gdk/Makefile.am
gdk/gdk-private.c [new file with mode: 0644]
gdk/gdk-private.h [new file with mode: 0644]
gdk/gdk.c
gdk/gdkdevice.h
gdk/gdkdisplay.c
gdk/gdkdisplay.h
gdk/gdkmain.h
gtk/gtkmain.c